package com.wanmait.demo.pojo;

import java.io.Serializable;
import java.util.Date;

public class ComponentUse implements Serializable {
    //zjj 我用来封装
    private RepairProgress repairProgress;

    //zjj 我用来封装
    private Worker worker;




    private Integer id;

    /**
	* 维修进程表id
	*/
    private Integer repairProgressId;

    /**
	* 零件id
	*/
    private Component component;

    /**
	* 零件数量
	*/
    private Integer count;

    /**
	* 使用时间
	*/
    private Date useTime;

    /**
	* 维修人员id
	*/
    private Integer workerId;

    /**
	* 状态
	*/
    private Boolean enable;

    private static final long serialVersionUID = 1L;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getRepairProgressId() {
        return repairProgressId;
    }

    public void setRepairProgressId(Integer repairProgressId) {
        this.repairProgressId = repairProgressId;
    }

    /*public Integer getComponentId() {
        return componentId;
    }

    public void setComponentId(Integer componentId) {
        this.componentId = componentId;
    }*/

    public Component getComponent() {
        return component;
    }

    public void setComponent(Component component) {
        this.component = component;
    }

    public Integer getCount() {
        return count;
    }

    public void setCount(Integer count) {
        this.count = count;
    }

    public Date getUseTime() {
        return useTime;
    }

    public void setUseTime(Date useTime) {
        this.useTime = useTime;
    }

    public Integer getWorkerId() {
        return workerId;
    }

    public void setWorkerId(Integer workerId) {
        this.workerId = workerId;
    }

    public Boolean getEnable() {
        return enable;
    }

    public void setEnable(Boolean enable) {
        this.enable = enable;
    }

    public RepairProgress getRepairProgress() {
        return repairProgress;
    }

    public void setRepairProgress(RepairProgress repairProgress) {
        this.repairProgress = repairProgress;
    }

    public Worker getWorker() {
        return worker;
    }

    public void setWorker(Worker worker) {
        this.worker = worker;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", repairProgressId=").append(repairProgressId);
        sb.append(", componentId=").append(component.getId());
        sb.append(", count=").append(count);
        sb.append(", useTime=").append(useTime);
        sb.append(", workerId=").append(workerId);
        sb.append(", enable=").append(enable);
        sb.append("]");
        return sb.toString();
    }
}